<?php
namespace app\auth\command;

use think\Cache;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class Votes extends Command
{
    protected function configure()
    {
        $this->setName('votes')->setDescription('Here is the remark ');
    }

    protected function execute(Input $input, Output $output)
    {
//        $shuzhi = $this->jisuan(5000,'2018-11-28 00:00:00','minute',3);
        $vote_add_count = Cache::get('vote_add_count');
        Cache::set('vote_add_count',$vote_add_count+12);
    }
//    private  function jisuan($total_people, $begin_time = '2018-11-28 00:00:00', $type = 'minute',$peishu=1)
//    {
//        if ($type = 'minute') {
//            $time_str = time() - strtotime($begin_time);
//            $minute_add_count = $total_people / 1440;
//            return  intval($time_str / 60 * $minute_add_count) * $peishu;
//        }
//        return 0;
//    }
}